package com.pengtu.entity.asset.equipment;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.pengtu.entity.IdEntity;

@Entity
@Table(name = "T_ASST_EQUIP_CHECK")
public class EquipCheck extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Date testDate;                 //检定时间
	private Date nextTestDate;             //下次检定时间
	private EquipInformation equipInformation; //检定设备
	private String remark;


	@ManyToOne
	@JoinColumn(name="EQUIPMENT")
	public EquipInformation getEquipInformation() {
		return equipInformation;
	}

	public void setEquipInformation(EquipInformation equipInformation) {
		this.equipInformation = equipInformation;
	}

	@Column(name="TESTDATE")
	@Temporal(TemporalType.DATE)
	public Date getTestDate() {
		return testDate;
	}

	public void setTestDate(Date testDate) {
		this.testDate = testDate;
	}

	@Column(name="NEXTTESTDATE")
	@Temporal(TemporalType.DATE)
	public Date getNextTestDate() {
		return nextTestDate;
	}

	public void setNextTestDate(Date nextTestDate) {
		this.nextTestDate = nextTestDate;
	}

	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public EquipCheck() {
		super();
	}

}
